package com.lc.demo.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Author: sakila
 * @Date: 2022/03/07/20:10
 * @Description:
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "t_order")
public class Order {


    @Id
    private Integer id;
    private String goodsDetail;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date createTime;
    private Double price;
    private Integer status;
    private Integer userId;
}
